$(document).on("click", ".v-close", function() {
	$(".vAlert").hide();
})

/**
 * 消息提示模态框
 * @param {Object} msgType 消息类型: success 成功。warning 警告
 * @param {Object} msgText
 */
function vAlert(msgType, msgText) {
	var bag = null;
	switch(msgType) {
		case "success":
			$("body").append("<div class='vAlert'><div class='v-shadow'></div><div class='v-content'><div class='v-operation' style='background: url(images/v-alert-success.png) no-repeat;background-size: 100% 100%;'><div class='v-br'></div><div class='v-text'>" + msgText + "</div><div class='v-br-b'></div><div class='v-hidden'><button class='v-close'>确定</button></div></div></div></div>");
			break;
		case "warning":
			$("body").append("<div class='vAlert'><div class='v-shadow'></div><div class='v-content'><div class='v-operation' style='background: url(images/v-alert-box.png) no-repeat;background-size: 100% 100%;'><div class='v-br'></div><div class='v-text'>" + msgText + "</div><div class='v-br-b'></div><div class='v-hidden'><button class='v-close'>确定</button></div></div></div></div>");
			break;
	}

}